﻿package baseEngine.events
{
    import baseEngine.collisions.*;
    import flash.events.*;

    public class MouseEvent3D extends Event
    {
        public var info:CollisionInfo;
        public static const CLICK:String = "click";
        public static const MOUSE_DOWN:String = "mouseDown";
        public static const MOUSE_MOVE:String = "mouseMove";
        public static const MOUSE_OUT:String = "mouseOut";
        public static const MOUSE_OVER:String = "mouseOver";
        public static const MOUSE_UP:String = "mouseUp";
        public static const MOUSE_WHEEL:String = "mouseWheel";

        public function MouseEvent3D(param1:String, param2:CollisionInfo = null)
        {
            this.info = new CollisionInfo();
            this.info = param2;
            super(param1);
            return;
        }// end function

        override public function clone() : Event
        {
            return new MouseEvent3D(type, this.info);
        }// end function

        override public function toString() : String
        {
            return "[MouseEvent3D type=\"" + type + "\"]";
        }// end function

    }
}
